<#if authority.is(4,"2") >
<div id="roledel">
<div id="waitting" STYLE=" position: absolute; width: 200; height: 49;top:50%;left:50%;margin:0px 0 0 -100px;"></div>
</div>

<script type="text/javascript">
var dataURL = '/data/sc.action';//取数据的url

var dataURLParams = {"scid":"auth_5","del_ids":del_ids};//要传给dataURL的参数
 
$('role_del').set('disabled', true);
$('waitting').innerHTML = '<img src="images/spinner.gif" width="16px" height="16px">';
	try {
		var request = new Request.JSON({
			url: dataURL,
			onComplete: function(json,text) {
				if (json.error.errorcode==0){
	 				MUI.notification('删除成功！');
	 				MUI.updateContent({
						'element':  $(mainPanel),
						'url':      '/auth/roles.action'
					});
					$('role_del').set('disabled', false);
	 			}else{
	 				MUI.notification('<font color=red>错误：</font>('+json.error.retstring+')');
	 				 $('role_del').set('disabled', false);
	 			}
			}
		}).get(dataURLParams);
	} catch (ex) {
		$('role_del').set('disabled', false);
		MUI.notification('<font color=red>错误：</font>访问失败('+ex.message+')');
				
	}
</script>
<#else>
您无权访问该页面！
</#if>